import { FormItemProps } from "antd";
import React from "react";


export enum ILCComponentType {
    INPUT = "INPUT"
}

export type ILCBaseProps<T> = FormItemProps & { children?: ILCComponentConfig<any>[] } & T;

export interface ILCJsonContext {
    type: ILCComponentType,
    props: ILCBaseProps<any>;
}





export interface ILCComponentConfig<T> {
    /**组件库里的名称 */
    name: string;
    /**组件类型 */
    type: ILCComponentType;
    /**组件props */
    defaultProps: () => ILCBaseProps<T>;
    component: React.FC<ILCBaseProps<T>>;
}

// export interface ILCComponent<T = any> extends React.FC<ILCBaseProps<T>> {

// }